<script lang="ts" setup name="city1">
import { Name } from "@/enums/router";
const test = ref<string>("");
onBeforeRouteLeave(() => {
    console.log("213123");
    // alert();
    // scrollTop.value = document.documentElement.scrollTop || 0
    // console.log(scrollTop.value);
})
</script>
<template>
    <NuxtLink :to="{ name: Name.CITY }">{{ Name.CITY }}</NuxtLink>
    <input v-model="test" />
</template>
<style scoped></style>
